<template>
  <a-layout-footer class="global-footer">
    <div class="footer-container">
      <div class="footer-content">
        <p class="copyright">
          编程导航原创项目 by
          <a
            href="https://www.codefather.cn"
            target="_blank"
            rel="noopener noreferrer"
            class="author-link"
          >
            程序员鱼皮
          </a>
        </p>
        <div class="footer-links">
          <a-space :size="24">
            <a href="#" class="footer-link">隐私政策</a>
            <a href="#" class="footer-link">服务条款</a>
            <a href="#" class="footer-link">联系我们</a>
          </a-space>
        </div>
      </div>
      <div class="footer-divider"></div>
      <div class="footer-bottom">
        <p class="icp-info">© 2024 鱼皮 AI 零代码应用生成平台 All Rights Reserved</p>
      </div>
    </div>
  </a-layout-footer>
</template>

<script setup lang="ts">
// 无需额外的逻辑，这是一个纯展示组件
</script>

<style scoped>
.global-footer {
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  padding: 32px 0 24px;
  margin-top: auto;
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.copyright {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.author-link {
  color: #1677ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 2px 4px;
  border-radius: 4px;
}

.author-link:hover {
  color: #4096ff;
  background-color: #e6f4ff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
}

.footer-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #1677ff;
  text-decoration: none;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e6e6e6 50%, transparent 100%);
  margin-bottom: 16px;
}

.footer-bottom {
  text-align: center;
}

.icp-info {
  margin: 0;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .footer-container {
    padding: 0 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .global-footer {
    padding: 24px 0 16px;
  }

  .footer-container {
    padding: 0 12px;
  }

  .footer-content {
    margin-bottom: 16px;
  }

  .copyright {
    font-size: 13px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-link {
    font-size: 13px;
  }

  .icp-info {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .footer-links :deep(.ant-space) {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-links :deep(.ant-space-item) {
    margin-bottom: 8px;
  }
}
</style>
